package com.ccys.cms.service.productAndService.impl;

import com.ccys.cms.service.productAndService.MedicalServiceTypeService;
import com.ccys.common.vo.ResponseResult;
import com.ccys.db.entity.TblMedicalServiceType;
import com.ccys.db.mapper.TblMedicalServiceTypeMapper;
import com.ccys.db.page.PageDto;
import com.ccys.db.rely.service.impl.BaseServiceImpl;
import com.ccys.db.vo.web.productAndService.MedicalServiceTypeVo;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class MedicalServiceTypeServiceImpl extends BaseServiceImpl<TblMedicalServiceType> implements MedicalServiceTypeService {


    @Resource
    private TblMedicalServiceTypeMapper mapper;

    @Override
    public ResponseResult getPage() {

        PageDto.startPage();
        List<MedicalServiceTypeVo> list = mapper.getList();
        PageInfo<MedicalServiceTypeVo> info = new PageInfo<>(list);
        return ResponseResult.success(info);
    }
}
